package health

import (
	"gitee.com/g-qs/gin-vue-admin/server/api/v1"
	"gitee.com/g-qs/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type HealthQuestionRouter struct {
}

// InitHealthQuestionRouter 初始化 健康问答-待回答问题表 路由信息
func (s *HealthQuestionRouter) InitHealthQuestionRouter(Router *gin.RouterGroup) {
	hqRouter := Router.Group("hq").Use(middleware.OperationRecord())
	hqRouterWithoutRecord := Router.Group("hq")
	var hqApi = v1.ApiGroupApp.HealthApiGroup.HealthQuestionApi
	{
		hqRouter.POST("createHealthQuestion", hqApi.CreateHealthQuestion)             // 新建健康问答-待回答问题表
		hqRouter.DELETE("deleteHealthQuestion", hqApi.DeleteHealthQuestion)           // 删除健康问答-待回答问题表
		hqRouter.DELETE("deleteHealthQuestionByIds", hqApi.DeleteHealthQuestionByIds) // 批量删除健康问答-待回答问题表
		hqRouter.PUT("updateHealthQuestion", hqApi.UpdateHealthQuestion)              // 更新健康问答-待回答问题表
	}
	{
		hqRouterWithoutRecord.GET("findHealthQuestion", hqApi.FindHealthQuestion)       // 根据ID获取健康问答-待回答问题表
		hqRouterWithoutRecord.GET("getHealthQuestionList", hqApi.GetHealthQuestionList) // 获取健康问答-待回答问题表列表
	}
}
